<template>
  <div>
    <div>
      <span>用户名:</span>
      <input type="text" v-model="uname" />
    </div>

    <div>
      <span>密码:</span>
      <input type="password" v-model.number="pwd" />
    </div>

    <div>
      <span>来自</span>
      <select v-model="from">
        <option value="北京市">北京</option>
        <option value="上海市">上海</option>
        <option value="杭州市">杭州</option>
      </select>
    </div>

    <div>
      <span>爱好:</span>
      <input type="checkbox" v-model="hobby" value="吃饭" />吃饭
      <input type="checkbox" v-model="hobby" value="睡觉" />睡觉
      <input type="checkbox" v-model="hobby" value="打豆豆" />打豆豆
    </div>

    <div>
      <span>性别:</span>
      <input type="radio" value="男" name="sex" v-model="gender" />男
      <input type="radio" value="女" name="sex" v-model="gender" />女
    </div>

    <div>
      <span>简介</span>
      <textarea v-model.lazy.trim="intro"></textarea>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      uname: "",
      pwd: "",
      from: "",
      hobby: [],
      gender: "男",
      intro: "",
    };
  },
};
</script>

<style>
</style>